Skip to content

BUG: Seed RNG in test_partially_invalid_plot_data #6670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 19, 2014

Conversation

TomAugspurger
Copy link
Contributor

Came up upon merging another PR. See comment #6644 (comment)

The test relies on drawing at least 1 draw out of 10 uniform draw to be larger than 0.5; even if this didn't cause the failure originally, it should still be fixed. I set a seed that's known to produce the desired values.

@jreback
Copy link
Contributor

jreback commented Mar 19, 2014

gr8! nice to remove the randomness..

I think this might set some global state (which is prob ok), maybe do at the top of the file?
(I think you can also do this in a with)

@TomAugspurger
Copy link
Contributor Author

I didn't see a context manager for the seed, so I defined one in pandas/utils/testing.

Do we need a release note? This is mostly internal.

@jreback
Copy link
Contributor

jreback commented Mar 19, 2014

no release note needed...go ahead when green

@TomAugspurger
Copy link
Contributor Author

OK. Does anything need to be done on #6644? Retrigger the build to check that this actually was the bug?

EDIT: I guess this build will include everything from #6644, so it should be OK?

@jreback
Copy link
Contributor

jreback commented Mar 19, 2014

yep you started with master so if this passes then ok

TomAugspurger pushed a commit that referenced this pull request Mar 19, 2014
BUG/ENH: RNG ContextManager. Use in test_partially_invalid_plot_data
@TomAugspurger TomAugspurger merged commit 8fc8b5a into pandas-dev:master Mar 19, 2014
@TomAugspurger TomAugspurger deleted the partially-invalid-plot branch May 15, 2017 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants